Skip to content

Update behat-data URLs in tests#612

Merged
swissspidy merged 2 commits intomainfrom
chore/update-tests
Apr 30, 2026
Merged

Update behat-data URLs in tests#612
swissspidy merged 2 commits intomainfrom
chore/update-tests

Conversation

@swissspidy
Copy link
Copy Markdown
Member

@swissspidy swissspidy added this to the 2.8.11 milestone Apr 28, 2026
@swissspidy swissspidy added the scope:testing Related to testing label Apr 28, 2026
@github-actions github-actions Bot added bug command:network Related to 'network' command command:option-update Related to 'option update' command labels Apr 28, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 28, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the asset download URLs in the features/site-empty.feature file, migrating them from wp-cli.org to wp-cli.github.io. Feedback was provided to use HTTPS for these URLs to enhance security and to correct the table alignment which was broken by the increased length of the new URLs.

And download:
| path | url |
| {CACHE_DIR}/large-image.jpg | http://wp-cli.org/behat-data/large-image.jpg |
| {CACHE_DIR}/large-image.jpg | http://wp-cli.github.io/behat-data/large-image.jpg |
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Consider using https instead of http for the asset URL. GitHub Pages supports HTTPS, which provides better security and avoids potential redirects. Additionally, the table alignment is currently broken because the new URL is longer than the previous one; while the header cannot be modified in this PR, reducing the trailing spaces helps minimize the misalignment.

      | {CACHE_DIR}/large-image.jpg | https://wp-cli.github.io/behat-data/large-image.jpg |

And download:
| path | url |
| {CACHE_DIR}/large-image.jpg | http://wp-cli.org/behat-data/large-image.jpg |
| {CACHE_DIR}/large-image.jpg | http://wp-cli.github.io/behat-data/large-image.jpg |
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Consider using https instead of http for the asset URL. GitHub Pages supports HTTPS, which provides better security and avoids potential redirects. Additionally, the table alignment is currently broken because the new URL is longer than the previous one; while the header cannot be modified in this PR, reducing the trailing spaces helps minimize the misalignment.

      | {CACHE_DIR}/large-image.jpg | https://wp-cli.github.io/behat-data/large-image.jpg |

@swissspidy swissspidy marked this pull request as ready for review April 30, 2026 07:25
@swissspidy swissspidy requested a review from a team as a code owner April 30, 2026 07:25
Copilot AI review requested due to automatic review settings April 30, 2026 07:25
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Behat test fixture download URLs to reflect the new hosting location referenced in the linked wp-cli.org redirect request, keeping the site empty feature tests working after the URL change.

Changes:

  • Replace wp-cli.org/behat-data URLs with wp-cli.github.io/behat-data in the site-empty Behat feature.
  • Apply the URL update in both the single-site and multisite scenarios within the same feature.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

And download:
| path | url |
| {CACHE_DIR}/large-image.jpg | http://wp-cli.org/behat-data/large-image.jpg |
| {CACHE_DIR}/large-image.jpg | http://wp-cli.github.io/behat-data/large-image.jpg |
Copy link

Copilot AI Apr 30, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The URL cell in this Gherkin table has trailing whitespace after large-image.jpg. Depending on how the download step parses table values, this can introduce a malformed URL or make the step harder to read/maintain. Please trim the extra spaces so the cell contains only the URL.

Suggested change
| {CACHE_DIR}/large-image.jpg | http://wp-cli.github.io/behat-data/large-image.jpg |
| {CACHE_DIR}/large-image.jpg | http://wp-cli.github.io/behat-data/large-image.jpg |

Copilot uses AI. Check for mistakes.
And download:
| path | url |
| {CACHE_DIR}/large-image.jpg | http://wp-cli.org/behat-data/large-image.jpg |
| {CACHE_DIR}/large-image.jpg | http://wp-cli.github.io/behat-data/large-image.jpg |
Copy link

Copilot AI Apr 30, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This URL cell also includes trailing whitespace after large-image.jpg. Please trim it for consistent table formatting and to avoid any chance of the whitespace being treated as part of the URL by the download step.

Copilot uses AI. Check for mistakes.
@swissspidy swissspidy merged commit fa8d791 into main Apr 30, 2026
77 checks passed
@swissspidy swissspidy deleted the chore/update-tests branch April 30, 2026 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug command:network Related to 'network' command command:option-update Related to 'option update' command scope:testing Related to testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants